﻿<?xml version="1.0" encoding="utf-8" ?>
<CustomUI>
  <Category Text="Format">
    <Group Text="Clipboard" ImageRef="Edit.png">
      <Button
        Name="Edit.Paste"
        Text="Paste"
        LargeImage="Paste32.png"
        SmallImage="Paste16.png"
        />
      <Button Ref="Edit.Cut"/>
      <Button Ref="Edit.Copy"/>
    </Group>
    <Group Ref="Font"/>
    <Group Ref="Paragraph"/>
    <Group Ref="Editing"/>
  </Category>
</CustomUI>

<!--
The above XML will create this UI (a 'Format' tab):

[Home] [[Format]]
|         [Cut   | [Font Family] [Font Size] | [Left] [Right] [Center] |                          |  
| [Paste] [Copy] | [B][U][I][S] [FC][BC]     | [N] [B] [->] [<-]       | [Save] [Draft] [Discard] |
|                | [CF]                      |                         |                          |
    (Clipboard)            (Font)                   (Paragraph)                 (Editing)
    
    

The 'Name' field is the identifier of a command UI
if it is clicked or actived by user.

MessageEditor.ExcuteCommand() will be called. the 

uiElement argument will contains all information needed.

When an editor or viewer needs to update the element UI,
eg. User selected some text and it needs to update font
combo box to show the font of the selected text,
You should raise UpdateCommandUI event to notify the GUI

There are some predefined elements, you can use 'Ref' to include them

Categories:
  Format,
  
Groups:
  Clipboard,
  Font,
  Paragraph,
  Editing,
  
Elements:
  Edit.Cut,
  Edit.Copy,
  Edit.Paste,
  Edit.Undo,
  Edit.Redo,
  Edit.PlainText
  Edit.Html
  Edit.InsertAttachment
 
  Font.Family,
  Font.Size,
  Font.Bold,
  Font.Italic,
  Font.Underline,
  Font.Strikethrough
  
  Font.Enlarge,
  Font.Minish,
  
  Font.ClearFormat,
  
  Font.Superscript
  Font.Subscript

  Font.ForeColor
  Font.BackColor

  Paragraph.LeftAlign,
  Paragraph.RightAlign,
  Paragraph.CenterAlign,
  
  Paragraph.Numbers,
  Paragraph.Bullets,
  
  Paragraph.Indent,
  Paragraph.Unindent,
  
  Actions.Send,
  Actions.SaveDraft,
  Actions.Discard

-->
